package com.yanqu.road.server.cmd.activity.fivehero;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.cross.activity.CrossActivityProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.cmd.CrossUnionCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.activity.fivehero.CrossFiveHeroActivity;
import com.yanqu.road.server.manager.activity.fivehero.CrossFiveHeroMgr;
import com.yanqu.road.server.protocol.CrossProtocol;

@Cmd(code = CrossProtocol.C2_CROSS_FIVE_HERO_GET_CHAT, desc = "")
public class CrossFiveHeroGetChatCmd extends CrossUnionCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        CrossActivityProto.CrossActivityChatListReqMsg reqMsg = CrossActivityProto.CrossActivityChatListReqMsg.parseFrom(packet.getBytes());
        CrossFiveHeroActivity activity = CrossFiveHeroMgr.getFiveHeroActivity(reqMsg.getActivityId(),groupId);
        activity.getChatByCmd(packet.getPlayerId(), reqMsg.getParamList(), reqMsg.getParam2());
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

    }

    @Override
    public void sendData() {

    }
}
